package net.csdn.business.kanban.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName FieldExtensionEnums
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/15
 **/
@Getter
@AllArgsConstructor
public enum FieldExtensionEnums {
    NAME("name","字段属性名称"),
    DESC("desc","描述"),
    COLOR("color","颜色");
    final String name;
    final String msg;
    public static FieldExtensionEnums ofCode(String name) {
        for (FieldExtensionEnums type : FieldExtensionEnums.values()) {
            if (type.name.equals(name)) {
                return type;
            }
        }
        throw new IllegalArgumentException("FieldExtensionEnums param error");
    }
}
